<?php /* Smarty version Smarty-3.1.15, created on 2016-10-28 17:44:33
         compiled from "D:\projs\USBWebserver v8.6\root\snapshop\admin\include\template\snap\products.tpl" */ ?>
<?php /*%%SmartyHeaderCode:227175812e4e37fe684-26529409%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '089c7bc4bbacee2f557fb57d1ddf226c87a9359e' => 
    array (
      0 => 'D:\\projs\\USBWebserver v8.6\\root\\snapshop\\admin\\include\\template\\snap\\products.tpl',
      1 => 1477637096,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '227175812e4e37fe684-26529409',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_5812e4e3839017_04390325',
  'variables' => 
  array (
    'osadmin_action_alert' => 0,
    'osadmin_quick_note' => 0,
    'products' => 0,
    'product' => 0,
    'osadmin_action_confirm' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5812e4e3839017_04390325')) {function content_5812e4e3839017_04390325($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("navibar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!-- START 以上内容不需更改，保证该TPL页内的标签匹配即可 -->
<?php echo $_smarty_tpl->tpl_vars['osadmin_action_alert']->value;?>

<?php echo $_smarty_tpl->tpl_vars['osadmin_quick_note']->value;?>


<div class="well">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#home" data-toggle="tab">產品列表</a></li>
    </ul>

    <div id="myTabContent" class="tab-content">
        <div class="tab-pane active in" id="home">

            <form id="tab" method="post" action="">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>產品ID</th>
                        <th>產品名稱</th>
                        <th>原價</th>
                        <th>預購價</th>
                        <th>產品描述</th>
                        <th>是否展示</th>
                        <th>操作</th>
                        <th>是否上下架</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php  $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
$_smarty_tpl->tpl_vars['product']->_loop = true;
?>
                        <tr>
                            <td><?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['product']->value['products_name'];?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['product']->value['products_price'];?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['product']->value['products_special_price'];?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['product']->value['products_desc'];?>
</td>
                            <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                                <?php if ($_smarty_tpl->tpl_vars['product']->value['products_index']>0) {?>
                            <img width=30 height=auto src="<?php echo @constant('ADMIN_URL');?>
/assets/images/gou.png"/>
                                <?php } else { ?>
                            <img width=30 height=auto src="<?php echo @constant('ADMIN_URL');?>
/assets/images/cha.png"/>
                                <?php }?>
                            </td>
                            <td>
                                <a class="btn btn-info"
                                   href="products_modify.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
&action=modify"
                                   target="_self" title="修改"
                                   alt="修改">修改</a>

                                <a class="btn btn-info"
                                   href="products.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
&action=del"
                                   onclick="if(confirm('确定删除吗?')==false)return false;"
                                   target="_self" title="删除"
                                   alt="删除">删除</a>

                            </td>
                            <?php if ($_smarty_tpl->tpl_vars['product']->value['products_index']>0) {?>
                            <td style="color:red;font-size: 14px;font-weight: normal;">
                                <a class="btn btn-info"
                                   href="products.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
&action=down"
                                   target="_self" title="下架"
                                   alt="下架"><span style="color: yellow;">下架</span></a></td>
                            </td>
                            <?php } else { ?>
                            <td style="color:blue;font-size: 14px;font-weight: normal;">
                                <a class="btn btn-info"
                                   href="products.php?id=<?php echo $_smarty_tpl->tpl_vars['product']->value['products_id'];?>
&action=up"
                                   target="_self" title="上架"
                                   alt="上架"><span style="color: blue;">上架</span></a></td>
                            </td>
                            <?php }?>
                        </tr>
                        <?php } ?>
                    </tbody>
                </table>
            </form>
        </div>
    </div>

    <!---操作的确认层，相当于javascript:confirm函数--->
    <?php echo $_smarty_tpl->tpl_vars['osadmin_action_confirm']->value;?>



    <!-- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
    <?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
